import {useState} from "react";

export default function ject() {
    const [num,setNum] = useState(0);
    return (
        <div>
            <p>{num}</p>
            <button onClick={() => setNum(num + 1)}>Increment</button>
        </div>
    )
}